package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.Teacher;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TeacherMapper extends BaseMapper<Teacher> {
    List<Teacher> selectAll(Teacher teacher);
    //mybatis-plus提供的功能省略了简单的CRUD操作

  /* @Insert("insert into teacher value(#{tNo},#{tName},#{tAge},#{tSex},#{tBirth})")
    void addTeacher(Teacher teacher);*/

 /*   @Update("update teacher set t_name=#{tName},t_age=#{tAge},t_sex=#{tSex},t_birth=#{tBirth} where t_no=#{tNo}")
    void updateTeacher(Teacher teacher);*/

  /*  @Delete("delete from teacher where t_no = #{tNo}")
    void deleteTeacher(Integer tNo);*/
}
